import { ref, computed } from "vue";
import { defineStore } from "pinia";
import { loginAPI } from "@/apis/user";
import type { LoginUser } from "@/types/login/login";
export const useCounterStore = defineStore("counter", () => {
  const userInfo = ref({});
  const getUserInfo = async ({ account, password }: LoginUser) => {
    const res = await loginAPI({ account, password } as LoginUser);
    userInfo.value = res.data.result;
  };
});
